using UnityEngine;
using System.Collections;

public class RotateByGravity : MonoBehaviour {
	
	
	
	void Update () {
		//Rotate Device and Rotate this transform
		if(PlayerCtrl.g_OperationState == OperationState.RotateDev){
			transform.root.rotation = Quaternion.Lerp(transform.root.rotation,Quaternion.Euler(transform.root.eulerAngles.x,transform.root.eulerAngles.y,PlayerCtrl.g_Angle),PlayerCtrl.g_RotTime);//;
		}
	}
}
